<?php
class MyController extends Controller
{
	public function actionIndex($word){
		$model = array();
		if(!(strpos($word," ")===false)){
			$model = SpellCorrectorTwoWords::correct($word);
		}else{
			$model = SpellCorrectorHash::correct($word);
		}
    	$this->renderPartial('index',array('model'=> $model));
	}
}
